﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LienHeList.ascx.cs" Inherits="LienHeList" %>
<asp:GridView ID="grvContact" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    AllowSorting="True" OnPageIndexChanging="grvContact_PageIndexChanging" PageSize="20"
    OnSorting="grvContact_Sorting" CssClass="adminlist">
    <Columns>
        <asp:TemplateField HeaderText="X&#243;a" ItemStyle-Width="20px">
            <HeaderTemplate>
                <input id="chkAll" name="chkAll" onclick="javascript:SelectAllCheckboxes(this);"
                    type="checkbox" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox runat="server" ID="chkSelect" ToolTip='<%# Eval("ContactId") %>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Họ t&#234;n" SortExpression="Name">
            <ItemTemplate>
                <a href='?cid=21&id=<%# Eval("ContactId")  %>'>
                    <asp:Label ID="lblArticleID" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                </a>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" Width="150px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tel" SortExpression="Tel">
            <ItemTemplate>
                <asp:Label ID="lblTel" runat="server" Text='<%# Eval("Tel") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" Width="70px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tel" SortExpression="Fax">
            <ItemTemplate>
                <asp:Label ID="lblTel4343" runat="server" Text='<%# Eval("Fax") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" Width="70px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Email" SortExpression="Email">
            <ItemTemplate>
                <a href="?cid=22&email=<%# Eval("Email") %>">
                <asp:Label ID="lblEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label></a>
            </ItemTemplate>
            <HeaderStyle Width="70px" HorizontalAlign="Left" />
            <ItemStyle HorizontalAlign="left" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tiêu đề" SortExpression="Title" HeaderStyle-HorizontalAlign="left">
            <ItemTemplate>
                </asp:TemplateField>
                <asp:Label ID="lblDescripton2" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Nội dung" SortExpression="Descripton" HeaderStyle-HorizontalAlign="left">
            <ItemTemplate>
                <asp:Label ID="lblDescripton" runat="server" Text='<%# Eval("Descripton") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ng&#224;y gửi" SortExpression="CreatedDate">
            <ItemTemplate>
                <asp:Label ID="lblAddedDate" runat="server" Text='<%# ((DateTime)Eval("CreatedDate")).ToShortDateString() %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="70px" HorizontalAlign="Left" />
            <ItemStyle HorizontalAlign="left" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Trạng thái" SortExpression="StatusString">
            <ItemTemplate>
                <asp:Label ID="lblS" runat="server" Text='<%# Eval("StatusString")%>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="70px" HorizontalAlign="Left" />
            <ItemStyle HorizontalAlign="left" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <div align="center" id="EmptyData">
            Không có thông tin...</div>
    </EmptyDataTemplate>
    <PagerStyle HorizontalAlign="Center" CssClass="pager" />
    <AlternatingRowStyle CssClass="AlternatingRow" />
</asp:GridView>
